﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Free.Master" Inherits="System.Web.Mvc.ViewPage<Pp.UI.Models.LogOnModel>" %>

<%@ Import Namespace="Pp.Globalization" %>
<%@ Import Namespace="Pp.UI.Models" %>
<%@ Import Namespace="Pp.Core.Extentions" %>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <div id="content-panel">
        <h2>
            <%=Res.Title_LogIn  %></h2>
        <p>
            <%=Res.Format_Information_Register.FormatWith( Html.ActionLink(Res.Label_New_Account , "Register") )%>
            <%=Html.ValidationSummary() %>
        </p>
        <% using (Html.BeginForm("LogOn","Account"))
           { %>
        <%=Html.TextBox<LogOnModel>(Res.Label_Username + ":",d=>d.UserName) %>
        <%=Html.Password<LogOnModel>(Res.Label_Password + ":", d => d.Password)%>
        <%=Html.CheckBox<LogOnModel>(d => d.RememberMe, "-", Res.Label_Remember, Res.Label_NotRemember)%>
        <div style="float: right;">
            <%=Html.Submit(Res.Label_LogOn ,false) %></div>
        <% } %>
        <div style="clear: both;">
        </div>
    </div>
</asp:Content>
